home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
The World of Computer Software.iso
/
porttool.zoo
/
rm.man
< prev
next >
Wrap
Text File
|
1992-12-03
|
3KB
|
60 lines
NNAAMMEE
rm - remove files or directories
SSYYNNOOPPSSIISS
rrmm [ _-_f_h_i_k_l_v ] _f_i_l_e ...
rrmm [ _-_f_h_i_k_l_r_v ] _d_i_r_e_c_t_o_r_y ... [ _f_i_l_e ... ]
DDEESSCCRRIIPPTTIIOONN
rrmm removes one or more files from a directory.
If a file is marked read-only and the standard input is a terminal,
the message "_f_i_l_e: read-only ? " is printed. This is a prompt for
confirmation. If the answer begins with y (for yes), the file is
deleted, otherwise the file remains.
Note that if the standard input is not a terminal, the command will
operate as if all answers are "yes".
OOPPTTIIOONNSS
--ff Remove all files (whether read-only or not) in a directory
without prompting the user. Incompatible with --kk.
--hh Display a short help message.
--ii Interactively confirm the removal of each file. Overrides the
--ff option and remains in effect even if the standard input is
not a terminal.
--kk Keep all read-only files without prompting the user.
Incompatible with --ff.
--ll Do not delete directories when performing a recursive delete
(--rr).
--rr Recursively remove any directories and subdirectories in the
argument list. The directory will be emptied of files and
removed. Note that the user is normally prompted for removal of
any read-only files which the directory contains. The read-only
files are removed without prompting if the --ff option is used, or
if the standard input is not a terminal and the --ii option is not
used. If the removal of a non-empty or read-only directory was
attempted, the command will always fail (even if the --ff option
is used), resulting in an error message.
--vv Verbose. Display the name of each file and directory as it is
removed.
DDIIAAGGNNOOSSTTIICCSS
All messages are generally self-explanatory.
It is forbidden to remove the files "." and ".." in order to avoid
the consequences of inadvertently doing something like rrmm --rr ..**.
rrmm returns an exit code of 0 if all the specified files and/or
directories are removed successfully. rrmm returns a non-zero exit
code if any errors occurred.
CCooppyyrriigghhtt ((cc)) 11999922 FFrraannkk EE.. WWhhaalleeyy AAllll rriigghhttss rreesseerrvveedd